import requests

'''
瑞金医院：59689365b676439d87b2a650001af23a
浙江省人民医院：7edcdfdd0aa4475f838aa650001af23a
太美第一人民医院: 16a67708-597c-11e8-a539-00163e02f99a
上海市第一人民医院：b861be59f22b49829747a650001af23a
'''

tenant_ids = ['59689365b676439d87b2a650001af23a', '7edcdfdd0aa4475f838aa650001af23a',
              '16a67708-597c-11e8-a539-00163e02f99a', 'b861be59f22b49829747a650001af23a']

url = "http://127.0.0.1:5000/convert"

payload = {'type': 'wps', 'path': '/root/Downloads/a.docx', 'format': 'pdf'}
headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Edg/106.0.1370.47',
    'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, json=payload)

print(response.text)
